package com.blb.community_admin.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;


@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("zy_complaint_suggest")
public class ZyComplaintSuggest {
    @TableId
    @ExcelProperty("投诉人id")
    private long complaintSuggestId;
    @ExcelIgnore
    @JsonSerialize(using = ToStringSerializer.class)
    private long communityId;
    @ExcelProperty("类型")
    private String complaintSuggestType;
    @ExcelProperty("内容")
    private String complaintSuggestContent;
    @ExcelIgnore
    private String createBy;
    @ExcelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @ExcelIgnore
    private String updateBy;
    @ExcelIgnore
    private LocalDateTime updateTime;
    @ExcelProperty("备注")
    private String remark;
    @ExcelIgnore
    private long userId;



}
